package Day03;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
       /* char c=65;
        System.out.println(c);
        int max;
        int a=5,b=8;
        if (a>b){
           max=a;

        }else {
            max=b;
        }
        System.out.println(max);

         int min=a<b?a:b;
        System.out.println(min);

        */

        /**
         * 闰年的判断
         * 每4年一润，百年不润及能被4整除，不能被100整除
         * 能被400整除
         */
        System.out.println("请输入年数");
        Scanner scanner=new Scanner(System.in);
        int year=scanner.nextInt();
        if ((year%4==0&&year%100!=0)||year%400==0){
            System.out.println(year+"是闰年");
        }else {
            System.out.println(year+"不是闰年");
        }
        System.out.println();
    }
}
